package com.ruoyi.project.jxc.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class PurchaseDrug  extends BaseEntity {
    private String purOrderID;
    //采购单对象
    private JxcPurchase pur;
    private Long drugId;
    //药品对象
    private JxcDrug dg;
    //采购数量
    private Long purNumbers;
    /**
     *批次号
     */
    private Long purId;
    private Double purPrice;

    @Override
    public String toString() {
        return "PurchaseDrug{" +
                "purOrderID='" + purOrderID + '\'' +
                ", drugId=" + drugId +
                ", purNumbers=" + purNumbers +
                ", purId=" + purId +
                ", purPrice=" + purPrice +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PurchaseDrug that = (PurchaseDrug) o;
        return Objects.equals(purOrderID, that.purOrderID) && Objects.equals(drugId, that.drugId) && Objects.equals(purNumbers, that.purNumbers) && Objects.equals(purId, that.purId) && Objects.equals(purPrice, that.purPrice);
    }

    @Override
    public int hashCode() {
        return Objects.hash(purOrderID, drugId, purNumbers, purId, purPrice);
    }

    public PurchaseDrug() {
    }

    public String getPurOrderID() {
        return purOrderID;
    }

    public void setPurOrderID(String purOrderID) {
        this.purOrderID = purOrderID;
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public Long getPurNumbers() {
        return purNumbers;
    }

    public void setPurNumbers(Long purNumbers) {
        this.purNumbers = purNumbers;
    }

    public Long getPurId() {
        return purId;
    }

    public void setPurId(Long purId) {
        this.purId = purId;
    }

    public Double getPurPrice() {
        return purPrice;
    }

    public void setPurPrice(Double purPrice) {
        this.purPrice = purPrice;
    }

    public PurchaseDrug(String purOrderID, Long drugId, Long purNumbers, Long purId, Double purPrice) {
        this.purOrderID = purOrderID;
        this.drugId = drugId;
        this.purNumbers = purNumbers;
        this.purId = purId;
        this.purPrice = purPrice;
    }
}
